package com.example.controller;

import com.example.mapper.BannerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/banner")
public class BannerController {
    @Value("${dirPath}")
    private String dirPath;
    @Autowired(required = false)
    BannerMapper mapper;
    @RequestMapping("/insert")
    public void insert(String url){
        mapper.insert(url);
    }


}
